package com.lkk.cg.base;

import com.lkk.cg.util.PageBean;
import com.lkk.cg.util.QueryHelper;

import java.util.List;

/**
 * Created by lkk on 2014/11/25.
 */
public interface DaoSupport<T> {

    public T getById(Long id);

    public void delete(Long id);

    public void save(T entity);

    public void update(T entity);

    public List<T> getByIds(Long[] ids);

    public List<T> getAll();

    PageBean getPageBean(int pageNum, int pageSize,QueryHelper queryHelper);

}
